package com.project.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 出入库流水列表项 VO
 */
@Data
public class StockTransactionListVO {
    private Long transactionId;
    private Long materialId;
    private String materialName;
    private String materialCode;
    private String unit;
    // 1:入库, 0:出库
    private Integer transactionType;
    // "入库" / "出库"
    private String transactionTypeName;
    // 变动数量
    private BigDecimal quantity;
    private Long relatedAcceptanceId;
    private String relatedAcceptanceNo;
    private Long relatedRequestId;
    private Long operatorId;
    private String operatorName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}